﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOABLL;
using TarreOA.TarreOAModels;

public partial class admin_ShowCompany : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            CompanyInfo companyInfo = CompanyInfoManager.showIt(Server.MapPath(@"~/companyFiles/Company.xml"));
            lblAccounts.Text = companyInfo.Accounts;
            lblAddress.Text = companyInfo.Address;
            lblBankAccounts.Text = companyInfo.BankAccounts;
            lblCompanyName.Text = companyInfo.CompanyName;
            lblEmail.Text = companyInfo.Email;
            lblFaxes.Text = companyInfo.Faxes;
            lblPostalcode.Text = companyInfo.Postalcode;
            lblTelephone.Text = companyInfo.Telephone;
            lblURL.Text = companyInfo.Url;
        }
    }
}
